/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package factorymethod;

/**
 *
 * @author Webert
 */
public class FactoryTipoInstrutor {
    public TipoInstrutor getTipoInstrutor(String tipo, String situacao){
        if("contratado".equals(situacao)){
            return new Interno(situacao);
        }else{
            return new Personal(situacao);
        }
    }
}
